import { createStore, applyMiddleware } from 'redux';
import logger from 'redux-logger';
import rootReducer from './reducer';
import thunk from 'redux-thunk';
// 1. 安装 yarn add redux-devtools-extension
// 2. 在store/index.js中进行配置和导入
// 3. 安装chrome浏览器插件
// 4. 启动react项目，打开 chrome 开发者工具，测试
import { composeWithDevTools } from 'redux-devtools-extension';
export default createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk, logger)));
